package engine.graphics.vfx
{
	import away3d.core.managers.*;
	import engine.core.*;
	import engine.graphics.away3d.*;
	import engine.loaders.*;
	
	public class RxWorldQuadMeshFX extends RxWorldBaseFX
	{
		private var m_resources:RxQuadMeshResources;
		private var m_width:Number;
		private var m_height:Number;
		private static var s_pool:RxObjectPool = null;
		
		public function RxWorldQuadMeshFX(resources:RxQuadMeshResources)
		{
			InitQuadMeshFX(resources);
		}
		
		public function InitQuadMeshFX(resources:RxQuadMeshResources) : void
		{
			this.m_resources = resources;
			this.m_width = 0;
			this.m_height = 0;
		}
		
		public static function CreatePool(initSize:uint, growSize:uint) : void
		{
			var allocFunc:* = function () : Object
			{
				return new RxWorldQuadMeshFX(null);
			};
			
			s_pool = new RxObjectPool(allocFunc, null, initSize, growSize, RxWorldQuadMeshFX);
		}
	}
}